#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.68])
AC_INIT(mBuild, 1.1, Yi.He.Ustcer@gmail.com)
LT_INIT()
AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR([config.h.in])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])

# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AC_PROG_AWK
AC_LANG_CPLUSPLUS
AC_LANG_C
AC_PROG_CPP
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_RANLIB

AM_PROG_CC_C_O

# Checks for libraries.

# Checks for header files.
AC_CHECK_HEADERS([string.h])
AC_CHECK_HEADER([tcl.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_INLINE

# Options
AM_PROG_LIBTOOL
AM_DISABLE_SHARED

# Checks for library functions.
AC_CHECK_FUNCS([floor pow sqrt strchr])
AC_CONFIG_FILES([Makefile
                 src/Makefile
                 src/UnitTests/Makefile
                 src/apps/Makefile
                 src/essential/Makefile
                 src/include/Makefile
                 tools/CHARMM_patch/Makefile
                 tools/GUI/Makefile
                 tools/Makefile
                 tools/NAMD_Geo_Constraint/Makefile
                 tools/batch_build/Makefile
                 tools/pqr_converter/Makefile])
AC_OUTPUT
echo \
"-------------------------------------------------

 ${PACKAGE_NAME} Version ${PACKAGE_VERSION}

 Prefix: '${prefix}'.
 Compiler: '${CC} ${CFLAGS} ${CPPFLAGS}'

 Package features:
   Install as tcl package: ${make_tcl_pkg}

 Now type 'make @<:@<target>@:>@'
   where the optional <target> is:
     all                - build all binaries
     check              - test the package
     install            - install everything

--------------------------------------------------"
